Implemented parMap for more granularity
forcing evaluation of sequential part of the algorithm