Added newton-raphson and bf-newton-raphson