Added maxTeamsPerJudge and randomized the assignment algorithm