Discrete Hidden Markov Model Training Based on Variable Length Particle Swarm Optimization Algorithm