Update cachematrix.R

Assignment No 2 was pursuing the understanding of the lexical scoping and the caching function in R avoiding a long computation time, in this case, to calculate the inverse of a square nonsingular matrix