Added a simple binary search.