add export method for newick trees