Updating algorithms and example