Update cachematrix.R

Creates and caches an inverse matrix.