Add pmap.
Rewrite pmap to be simpler and match other implementation's output more closely.