Suffix Array with Count Sort to sort the integer pair ranks