Returns the index of value using binary search, or -1 if not found.
value
-1
Requires IDs to be sorted using compare.
int binarySearchIndex(D value) => _Comparer.binarySearchIndex(_ids, value, compare);