Update cachematrix.R

This is a code, to cache the inverse of a matrix. 
The code is written for the second assignment of R class.