add binary search to search