add newton's method to sqrt()