Added size function to treeNode