Iterative Fast exponentiation