Implemented newton's method

This algorithm is soo simple :)