A simple Trie implementation for Node.js