Copy of Radix Sort for T1