Update cachematrix.R

Defined changes by DKurkowski for R Programming course