calculateDefaultStrides

Calculates default row-major strides for the given dimensions.