Modified MapAlgorithm to partition the naive run itself.