Given a list of people and some parameters, split them into smaller groups.