Binary search works with ArrayList of type term
a
Lets try this again