Patricia Trie implementation