add a garbage collection method to pnsets