[Trie] Provided the functional int-trie insertion algorithm