init.p.trans function

initializes the transition probabilities