Added another version of computeTransitionMatrix that takes a process as an argument