Added nextPowerOfTwo