Updated CalculateWordVectorVariance function