Tree traversal implementation with BFS