Update cachematrix.R

Commit programming assignment 2