Update cachematrix.R

Assignment 2 (week 3): caching the inverse of a matrix for grading via peer assessment