app to sort array of students into groups