added TreeNode class for implementing Tree data structure