add solution for Pow(x,n)