correctly compute running mean and variance of feature vectors