a implement of trie http://en.wikipedia.org/wiki/Trie