Traverse tree in zig zag order