Add linesearch objects
Fix usage of number of memorized steps