"Raises a value to the power of `exp`, using exponentiation by squaring."