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

Package or type prefix here and below.