added Zig-Zag ordered traversal for tree