Round to next power of 2
assert(nextPowerOfTwo(0) == 1); assert(nextPowerOfTwo(5) == 8);
See Implementation
Round to next power of 2