A simple binary search to be used on sorted arrays
Sorted Array to be searched
Element to be compared to array values
Comparison function to be apply el to every element in ar. Should return an positive/ negative integer or 0 if matching.
Index where search is found or negative index indicating where it would be inserted
A simple binary search to be used on sorted arrays