Fixed parallelSort: no more stack overflow