I\'m trying to think of a way to match n players in teams of 3 (n most likely won\'t exceed 30 and is a multiple of 3). The matching will be based on their ranks (the lower the