Update hmm_util.c

new countmat