The first line consists of two space-separated integers, N and M representing the rows and columns of the matrix
The next N lines consist of M space-separated integers representing the elements of the matrix
Size of the largest rectangle
0 <= N <= 1000
0 <= M <= 1000