Trie structure allowing objects to be indexed multiple times, with intersection and union lookups