writes a pairwise comparison array