Parallel sorting algorithm