Design of Balanced and Constant Weight Codes for VLSI systems