add newton-raphson algorithm