First version of the pow problem. The key catch is that pow(x,n) can be deducted from pow(x,n>>1), so no need to do all the multiplications.

Divide and conqueue algorithm.