Add TreeNode & CSTreeNode impl