If num_of_proc is 1, pmap acts like a normal map.
Deleted an unused function.
Fixed test.