algorithme to calculate the matches in a matchday(for pair team numbers only)