Update cachematrix.R

Coursera Programming Assignment2 commit