Changed matrix storage to a list
Stores new matrix after operations