code: function run(V, j) {
  
    var t = H(V);
    //console.log("H(X)");
    for (var i in t) {
  
      //	console.log(t[i].toFraction());
    }
  
    var s = grad(V);
    //console.log("vf(X)");
    for (var i in s) {
  
      //	console.log(s[i].toFraction());
    }
  
    //console.log("multiplikation");
    var r = matrMult(t, s);
    for (var i in r) {
  
      //	console.log(r[i].toFraction());
    }
  
    var R = (vecSub(V, r));
  
    console.log("X"+j);
    console.log(R[0].toFraction(), "= "+R[0].valueOf());
    console.log(R[1].toFraction(), "= "+R[1].valueOf());
    console.log("\n");
  
    return R;
  }
docs: Main function, gets a vector and the actual index