use msb to create integer values of varying sizes