On-line Hand Writing Recognition by Discrete HMM with Fast Learning