Hidden Markov Model for Java