Radix sort in ruby