static applyMaskPenaltyRule1(matrix) {
			return MaskUtil.applyMaskPenaltyRule1Internal(matrix, true) + MaskUtil.applyMaskPenaltyRule1Internal(matrix, false);
		}
Apply mask penalty rule 1 and return the penalty. Find repetitive cells with the same color and
give penalty to them. Example: 00000 or 11111.