Fast exponentiation: non-reccursive