api: document the trie data structure