code: public static void printMatrix(byte[][] matrix, int maxX, int maxY, PrintStream stream) {
  		for(int i = 0; i < maxX; i++) {
  			for(int j = 0; j < maxY; j++) {
  				stream.print(matrix[i][j] + " ");
  			}
  			stream.print("\n");
  		}
  		stream.println();
  	}
docs: /*
  Useful for debug, prints a matrix