Add copy constructor to temporary_allocator.
Annotate CUDA's malloc & free with __host__ __device__.
Enable CUDA's reduce in __device__ code.
Test reduce with thrust::device in __device__ code.