Add BFS and DFS graph traversal