example program for assigning matrix elements from a file into the memory associated with a matrix struct