Add a fn to calculate multi-step transition probability in N steps or fewer, allowing loops.