Given a value, a sorted array and a comparison function by which the array has been sorted, find the index of the specific value if it exists in the array.
Given a value, a sorted array and a comparison function by which the array has been sorted, find the index of the specific value if it exists in the array.