Radix sort implementation, quick sort formatting