Adding cluster switching to dendrogram