+ }else if (dMatrix->seqVec[smallCol][j].index < search) { //we don't have a distance for this cell
+ if (adjust != -1.0) { //adjust
+ merged = true;
+ PDistCell value(search, adjust); //create a distance for the missing value
+ int location = dMatrix->addCellSorted(smallCol, value);
+ changed = updateDistance(dMatrix->seqVec[smallCol][location], dMatrix->seqVec[smallRow][i]);
+ dMatrix->updateCellCompliment(smallCol, location);
+ nColCells++;
+ foundCol.push_back(0); //add a new found column
+ //adjust value
+ for (int k = foundCol.size()-1; k > location; k--) { foundCol[k] = foundCol[k-1]; }
+ foundCol[location] = 1;
+ }
+ j+=nColCells;
+ }