weighted_var function

Weighted Variance