partitions generator