algorithm to distribute kids in groups for "hosting house"