pmap modified to work with any iterable

added generic map on iterators. added docs

added pmap test cases
map with fewer temp arrays
Merge pull request #3798 from tanmaykm/tanmaykm

pmap modified to work with any iterable