Update trees.cpp