Compares the item with the middle element of the current search range and updates the search bounds accordingly. This function handles both ascending and descending ordered arrays. It calculates the middle index of the current search range and compares the item with the element at this index. It then updates the search bounds (`left` and `right`) based on the result of this comparison. If the item
(
item: &T,
arr: &[T],
left: &mut usize,
right: &mut usize,
is_asc: bool,
)
source not stored for this graph (policy: none)