Using an assert method rather than a boolean return to verify power of two.