C++:  power of 2 - alt implementation
C++: power of 2, logn alg.
C++: power of 2 - bit shifting