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

Is this a good description? NextDirectioner is not an optimization method by itself and does not involve a linesearch either.