New algorithm use the fact that files list are always sorted to optimize the table's insertions and removals.