basic realization of hidden markov model written in java. UseHMM.java has the main test method