update for shell sort