Revision 2: Generate text instead of CSV files.
Revision 3: converted matrix v to a column vector before writing it.
Files for Lab 8.