Amultiple testing procedure for multi-dimensional pairwise comparisons with application to gene expression studies