Use linesearch functions from the Optim package