Binary search for all data types