dear Ben, try find explanation of union-find in textbooks or maybe web. i cant type much with my rsi... -john