Update cachematrix.R

Constructed the code for cacheSolve