Added TreeNode class.