Algorithm Of Semi Intransient Matrix