Created class TreeNode
members:
data:int
left,right,parent:TreeNode
getters&setters