Implement DFS and BFS for undirected graph