implemented pmapreduce with loop
to avoid change in Base.reduce that breaks assumptions here.