Update cachematrix.R

Updated cachematrix with solution for caching the inverse of a matrix.