Using grid in MDSampleSet