Method that converts a dataset into a matrix
read_file(path)
path
returns a matrix whose content is the dataset received as a parameter