Used bisect in _find_matching_indices method.