put omp critical region around last sort and moved a shared variable declaration out of omp parallel region
put omp critical region around last sort and moved a shared variable declaration out of omp parallel region

cmcantalupo/SorterDist,cmcantalupo/SorterDist,cmcantalupo/SorterDist