Finished Newton Raphson method

Signed-off-by: Jedabero <jedabero@hotmail.com>