queue for tree traversal