Able to read matrix from text file