P04: Add iterative DFS approach