Initial commit of functions from github.com/btracey/optimize

Mmm, what about something like: NextDirectioner implements a strategy for computing at each major iteration a new search direction along which a line search is performed.