Print the dendrogram to a file