Upgrading the backtracing algorithm for the Newton solver.