Templated C++ radix sort works.
Added handling of not sortable arrays.