A lot of pairs have 0 distance, but aren't exactly equal. Need to remove duplicates given a small tolerance.