exponentiation by squaring and use ** for powf