Zigzag tree traversal