Delete VectorMinMax and add check of number of variable names