Code for TreeLinkNode class.