write newick format string by recursion, no longer using string in node class