For the inorder traversal of a generic BST