Parallelizing outerloop of ranksort