Added a method for loading a matrix from a CSV file