add print_newick function, doesn't seem to improve performance though...