Merge pull request #304 from crgl/iterative-dfs-bug

Fix bug in order of iterative DFS