Commit the implementation of isPower2()