private static int nextPowerOfTwo(final int i){
  return Integer.highestOneBit(i) << 1;
}

private static int nextPowerOfTwo ( final int i ) { return Integer . highestOneBit ( i ) << 1 ; }
find the smallest power of two greater than the input value
