add function to calculate next largest int with same number of raised bits