Exercise 1.7. Fix example sqrt-newton implementation.