square root calculation by Newton's method