update Search_for_a_Range using BST template