Add missing header.
Make CUDA's merge_sort callable from __device__ code and test it.