Particle Filter algorithm I used for simulation

Particle Filter is in fact quite intuitive and straightforward; yet book
resources or online articles tend to make it sound esoteric. Feel free
to adopt this code and if you have questions please get in touch.