CALCULATING RANKINGS MATRIX...