Recursive binary search.