Create scanTree.cpp