public void setMatrixOutput(String varName, MatrixBlock outputData) throws DMLRuntimeException {
   MatrixObject mo = getMatrixObject(varName);
   mo.acquireModify(outputData);
   mo.release();
   setVariable(varName, mo);
 }