Binary search
Function that should return < 0 if given element is less than searched element etc
The insertion index of the element to look for
TypeError if arr is not an array
whatever compare() throws
compare()
Binary search