feature to update value of a leaf (keep the trie updated)