Basic BFS and DFS traversal now works.