Update latent states
updateS(
iter,
s,
V,
m,
Zb,
Zt,
Time,
MU.state,
P,
s2,
N.upper.tri,
random.perturb
)A list of vectors containing latent states and their probabilities
iteration number
the most recent latent states
Network generation rules
The number of breaks
Z - b
Z stacked by time
The length of time
UVU for each state
Transition matrix
error variance
The number of upper triangular elements
If random.perturb = TRUE and a single state observation is found,
the latent state is randomly selected by equal weights.