Computes square root using 1/2(an+n/an)