[FYR] statistic pinyin; add matrix arithmetric support