A hierarchical clustering tool