public static void CreateLogicalMatrix(REngine engine, int n, Stopwatch s)
        {
            bool[,] d = createLogicalMatrix(n);
            s.Start();
            var nvec = engine.CreateLogicalMatrix(d);

            s.Stop();
        }
 public static void CreateLogicalMatrix(REngine engine, int n, Stopwatch s)
 {
     bool[,] d = createLogicalMatrix(n);
     s.Start();
     var nvec = engine.CreateLogicalMatrix(d);
     s.Stop();
 }