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

Local does fit with global better. Is that an okay change @kortschak , or is that too unapproachable (though matlab gets away with fminunc, so...)?