The generational collection algorithm