CS373: re-usable particle filter parts

* Allows simple re-execution of the particle filter.