implemented sqrt using newton's method