Parallel sort implemented. Needs some debugging.