You have also posted this in the Algorithms & Recursion forum. I deleted that duplicate post- please stick with only one thread per question.