Text this: New learning algorithm based on Hidden Markov Model (HMM) as stochastic modelling for pattern calssification