function binaryInsert(array, value, opt_compareFn) {
  const index = binarySearch(array, value, opt_compareFn);
  if (index < 0) {
    insertAt(array, value, -(index + 1));
    return true;
  }
  return false;
}
Inserts a value into a sorted array. The array is not modified if the
value is already present.
@param {IArrayLike<VALUE>} array The array to modify.
@param {VALUE} value The object to insert.
@param {function(VALUE, VALUE): number=} opt_compareFn Optional comparison
    function by which the array is ordered. Should take 2 arguments to
    compare, and return a negative number, zero, or a positive number
    depending on whether the first argument is less than, equal to, or
    greater than the second.
@return {boolean} True if an element was inserted.
@template VALUE