AllContrasts function

Constructs a matrix with all the contrasts for pairwise comparisons.