changed the cachematrix.R file for assignment 2