Change Mat.getSizes() to return ((m,M),(n,N))