PAT tree construction for Chinese document and store the tree structure to an Mongodb