Implementation of clustering evaluation metrics for comparison.