Update cachematrix.R

Coursera R programming assignment2