Addng tree copying, traversing, and experiment functions