partitions algorithm progress