Implement best match search.