Added trie to librest