New post for DFS and BFS