How does a trie represent a set of strings?