User defined linesearch method bug fix
Add perturbation after certain iteration