fixed bug in generating HMM
forward and backward algorithms implemented & tested
compiler level should be JRE 1.6