getting square root manually