Extending R's dendrogram functionality