Add sequential, __host__ __device__ version of partition algorithms.