a trie template implement by c++