More progress on dendrogram and clustering