Added DepthFirstTraverse() method.