Computes next power of 2.
N so that N is a power of 2 and N >= i. Note: This function is not equivalent to the builtin std.math.nextPow2 when the input is a power of 2.
See Implementation
Computes next power of 2.