Exponentiate by squarying.