Update cachematrix.R

Added updates to the Caching the Inverse of a Matrix for assignment 2