Function to implement the particle smoothing method proposed by Gordsill et al. (2004).
References
Gordsill, S. J., Doucet, A., and West, M. (2004). Monte Carlo smoothing for nonlinear time series. Journal of the American Statistical Association, 99, 156-168.