More generic uses of DistanceMatrix instead of concrete implementations