converting IntPool to set-based impl.