transition.matrix function

Makes a transition matrix