Implement sweeping in GC