Updated calculation of trace and transition array
Updated calculation of trace and transition array

Corrected a bug where the indexing of the multidimensional transition
matrix started at “t”, but now it starts at “t-1”

feralaes/dampack