Let h be the function `h(x) = x^(2^t) mod N` where:

The challenge is to compute h(x) as fast as possible.