Update cachematrix.R

Changes for programming Assignment 2 - Caching the inverse of a matrix and using the cache instead of recomputing the inverse if the matrix has not changed and the inverse exists in the cache