Implementation of Hidden Markov Model with Viterbi algorithm for PHP