Added BFS and DFS