Added copyTree to tree2yield