Improved Gabage Collection Algorithm