added argument save.matrices to control whether gamma,dmat,delta arrays
are saved in model object for HMMs.
mods for hmmDemo; moved backward_prob abd compute_matrices to
HMMutilties
added local_decode function and modified R_HMMLikelihood and
loglikelihood, and backward_prob to work with a model object