Implemented Newton Raphson, it works!