Add a comparator for Point2Ds.