implement copying of Trees