add GetDimensions method to the Dataset class