shell sort in another way