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

NoLinesearch has been removed