Binary search, second test implementation