update solution for sqrtx