Chinese words segmentation using Trie and Viterbi