weightedVariance function

Compute the weighted variance of the particles.