inputs data into matrix

reads the file and puts it into a 2D array (matrix)