Notes on Classification and Hidden Markov Model