apart from this it's practically the same algorith I use. :)
Cheers Rolf
In reply to Re^2: counting pairwise incidences by LanX in thread counting pairwise incidences by reubs85