Generic amendment of MemoTrie package