A basic program to sort groups of students into groups