first run of hierarchical clustering