Added some resampling code
Particle filter accessors.