A simple example, to the particle filter algorithm, written in good ol' C