Add Depth-first search traversal