bisect: fix off-by-one error in `best_bisection_sorted()`