dimension 1 working now for minMaxOfDataSubset.cpp