Update cachematrix.R

Coursera - R Programming - Assignment 2