Completed the matrices saving feature