generateParallelExecuter function

Factory to generate a parallel executor of an existing function