Newton Raphson Method Cpp Library