Using negative curvature in solving nonlinear programs