add build tree
...didn't find a way to improve efficient for neighbor joining algorithm, but write final tree to newick file