tpm_phsmm function

Builds all transition probability matrices of an periodic-HSMM-approximating HMM