public static int getMaxSum(int[][] integers, int size) {
		int maxSum = Integer.MIN_VALUE;
		for (int row = 0; row < size; row++) {
			for (int column = 0; column < size; column++) {
				for (int rowEnd = 0; rowEnd < size; rowEnd++) {
					for (int columnEnd = 0; columnEnd < size; columnEnd++) {
						int sum = 0;
						for (int thisRow = row; thisRow <= rowEnd; thisRow++) {
							for (int thisColumn = column; thisColumn <= columnEnd; thisColumn++) {
								sum += integers[thisRow][thisColumn];
							}
						}
						if (sum > maxSum) {
							maxSum = sum;
						}
					}
				}
			}
		}
		return maxSum;
	}