Added pre post in order versions of DFS