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

There is IsGradient, IsFunGrad, but no IsFunction. Comment removed.