Updated MapAlgorithm to use parallel collections, but set the degree of
parallelism.