multi_transmat function

Creates a transition matrix for each item.