Modified MaximalIterationsTest as suggested; now runs for multiple N by
N switches in main method.

Also outputs the data into a nicely formed .m file.