add solution for pow(x,n)