Next, we prune redundant spans in R using the non-maximum suppression algorithm (Rosenfeld and Thurston, 1971).
we remove the span r l that possesses the maximum score u l from the set R and add it to the set O (line 10-11).