moved pmap method to Util module
using Task for the parallel mapping