Upate lowVarResample function in ParticleFilter.cc