program to check if a number is power of 2