compute Variance