Implement a plain binary search.