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