Added Newtown-Rhapson solver

Solves correctly the first example on p. 59 of the textbook.