Checks to see if a number is a power of two