1. You'll need 2 array tables for it
one for the team (index,name,w,d,l,etc,etc)
one for matches (matchIndex, teamLeft,TeamRight,result)
2. Make the matchmaking generator by iterating the A vs B, A vs C, A vs D, B vs C, etc., and fill the array for matches. thus giving you a match-list that you can run
Good Luck