shell sort in ruby