Final Update for cachematrix file for assignment