determining if a int is a power