Java: Is n a power of 2?