Modifications in CompareRanks class