Added a function to compact the gen2 'overflows' list after collection.

This should fix issue #62. I'm fairly sure about the algorithm used even if not so sure how to explain it.