Makes number of threads parameterizable

Closes #6
Merge pull request #7 from openminds/feature/threads

Makes number of threads parameterizable