Add Exponentiation Algorithm