Update ParallelMap, using sync.WaitGroup to simply the code, and performance is improved.