In fact it still had bugs. Now it should be ok.

stored explicitly the index in the fringe for each paper