Implement find_average_similarity().