Steps of hierarchical clustering