Calculating the mean vectors of each class