- START FUNC
dict = {}; // dictionary or object ... not sure if okay
// it must be {0 => 0, 1 => 0, 2 => 0, 3 => 0, ... MxN permutes) - not sure about permutes. Can be optimized
LOOP r = 0..rows
is0 = []
is1 = []
LOOP c = 0..columns
IF cell == 0 THEN is0.add(c);
ELSE is1.add(c);
dict[is0]++ // need to figure out defaults...
dict[is1]++ // same problem
RET max(dict.values)
- END FUNC