Ex 11C Transition matrices - using recursion