get_discrepancy_rank function

Extractor for pairwise discrepancy rankings