Updating with shell sort