backtracking linesearch for EG