Move scalar sort functions to the sequential backend.
Inherit sequential sort functions in the C++ backend.