completed sqrt(x) challenge