add generateTrees.cpp