Port MergeSort from nvidia sdk to manegedCUDA.