Editing cachematrix.R in ProgrammingAssignment2