Update cachematrix.R

Courser R programming: Programming Assignment 2