First version of the particle filter