Update cachematrix.R

Coursera Assignment 2