Applied RemoveAll() optimization to Set<> class