reWeightParticles function

Update the importance weights of each particle.