Add sequential, __host__ __device__ version of reduce_by_key
Lower scalar reduce_by_key onto the sequential backend.