Power of 2 check

Checks if an integer is a power of 2