create.XMAT function

design matrix for a hmm model