Algorithm incremental 2