adding reading of newick into testing the validity of a tree