Added pseudocode for DFS and BFS