Creates a two-dimensional matrix from numbers read from an external file.