Update hmm_util.c

Modified generateCountmat