Update cachematrix.R

Update cachematrix.R to include the functionality for inverse as well as caching for the performance