public void print() {
   MyPrintStream mps = new MyPrintStream(f);
   for (int i = 0; i < data.length; i++) {
     mps.println(StringConverter.arrayToTabString(data[i]));
   }
   mps.close();
 }
  private void printMatrix(String matrix, Matrix m) {
    MyPrintStream mps = new MyPrintStream(new File(matrix));
    double[][] vals = m.getArray();

    mps.println(header);
    for (int i = 0; i < vals.length; i++) {
      mps.println(StringConverter.arrayToTabString(vals[i]));
    }
  }