Trie Data Structure Time Complexity