`sort_index()` implementation
I adapted the radix sort implementation for sort()
to instead return indices of each element.
The adaptation for stable radix sort was a little bit more tricky---I had to ensure that I was never moving points in "reverse order". Anyway, it works.