Distribution of items into equal groups