Implement Trie.prototype.each