Update cachematrix.R

Coursera  - ProgrammingAssignment2