Implement isPower2