Not only related to this code, but we seem to need a data structure that represents sets. A wrapper to itable would do that nicely.