Added hierarchical clustering.