basic algorithm for particle filter

2 basic algorithms for particle filter