Limiting the number of threads used by pmap to 32.

Fixes #21