pairwise_compare function

Pairwise comparisons among documents in a corpus