upgrade the resample algorithm in ParticleFilter
small fix to type argument
Merge pull request #312 from BayesianLogic/Upgrade-Resample-for-ParticleFilter

upgrade the resample algorithm in ParticleFilter