Add zigzag level traversal.
Move TreeNode definition to common package.