Create treeDepth.cpp