Replaces first inline block for search with call to binary_search()