Radix sort implementation for sorting by scalar keys (integers, floats, chars, bools)
A fast, statistical, in-place ternary distribution sort.