Fix stochastic posterior bug

Code for calculating posterior wasn't copied from simple trellis to Stochastic
Trellis.