Cuda parallel sorting algorithm