tpm_g function

Build all transition probability matrices of an inhomogeneous HMM