Working version for Phoneme HMM training