Hmm's implementation of 0-9 digit training and recognition