Generate a dendrogram from a dataset