zig zag tree traversal