adding parallel service for convenient mpi and pthread parallelization
adapted to new ParallelService class