Update cachematrix.R

From Atanu Dasgupta