if max integer in matrix <= Integer.MAX_VALUE
a method not an algorithm