generic trie with persistency - wip