Least-Squares Hierarchical Clustering