Updated file cachematrix.R in ProgrammingAssignment2