Add getLongestMatch functionality to trie.