implementation of a O(n log n) algorithm (fastest possible) for matching two sets of points placed in a roadmap.