rewrite leetcode binary tree zigzag level traversal