Added convenience getNode method to TreeNode class