Change linesearch strategy

l_bfgs is failing on travis with old linesearch strategy. Best choice
has to be determined.