Update cachematrix.R

Coursera R Programming Assigment Week 3