Update hmm_util.c

fixing generateCountmat