Implemented ParallelScanOperation.