Compute a distance metric between two partitions of a set
partitionMetric computes a distance between two partitions of a set.