support priting results to console
saving dendrogram to a file