Well, I’m stuck. I have the whole problem worked out for how to implement this efficiently, but I can’t proceed. The efficient solution can be thought of as a matrix math problem. However, the scripting languages available to me are PHP, Python, Ruby, and Perl, none of which are suited to this kind of problem. It could be done but it would be clumsy and inefficient. A language like C would be ideal for this but that’s not available. So, I’m looking for another solution.