completed pow(x,n)