Added isPowerOf2 function.
Initial tests for power of 2 checks.
Added failing test case for large powers.
Made isPowerOf2 generic.