Change termIndex to be a BST