Using Set or List Based TrieNode Representation