Calculating the population variance