Convert to coordinate indexes before joining.

This eliminates the need to use a hashtable during join because the coordinates
are already unique.