Radix sort for any base