BFS and DFS Implemented