A Comparison of Newton’s Method and Two of its Modifications for the Solution of Nonlinear Optimization Problems