Sorts students into groups of selected size and assigns nicknames to each group. Adds remainder to last group.