Update cachematrix.R

Cristina Serrano solution to ProgrammingAssignment2 (R-Programming course)