find next larger/smaller int having the same number of digit 1's in
binary representation