create matrice_hhm for 3_state