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

Adding it later is fine with me.