method of pairwise comparisons