Algorithm for Gaussian Integer Exponentiation