Improved accuracy of sqrt function