code: public void set(final int i, final int j, final int val) {
  		p[(j - i + editDistance + 1) * rowLength + j] = val;
  	}
docs: Set an item in hMatrix.
  No checking for i &amp; j is done. They must be correct.
  
  @param i
  - (int) row number;
  @param j
  - (int) column number;
  @param val
  - (int) value to put there.