added dfs tree traversals