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

[...]string.

Values on separate lines.