Reduction of Non Deterministic Automata for Hidden Markov Model Based Pattern Recognition Applications