sorting: use `@inbounds` to eliminate bounds checks.

Shaved of 7% for sort and 25% for sortperm.