Replacing backtracking Newton solver with a dogleg trust region solver.