a multi-thread implementation of particle filters