Methods for detection of clusters in hierarchical clustering