Working with pmap. Going to rework it with RecursiveTask