added the working parallel sorting code