Clustering identical matches