n-dimensional slice
The index of the element that should be in sorted position after the function is finished.
See Implementation