Added information for BFS and DFS