The first version of the two-dimensional cost minimizer that works - at least it does so on the one example that I have. Thus, I'm handing over to Jim for testing purposes.