Chinese word segmentation program-forward maximum matching algorithm and inverse maximum matching algorithm