BFS for zigzag traversal of a binary tree.