Check if a given integer is a power of 2 or not.