add mdakin's simple trie implementation