add functions to draw dendrogram