Small refactoring of ParallelAlgo class