> As for posting one line of code, this a 1000+ lines algorithm All the more reason to then work on trying to cut away as much as you can whilst still preserving the nature of the problem. If you can get it down to a couple of hundred lines, then I suggest you post the complete code. The collected wisdom ...