Update cachematrix.R

Submission towards R-Programming Assignment 2, submitted on 21st Nov 2014