Added R code for caching matrix inverses