Implemented depth first search in DCTree.