Update with R code for assignment: Caching the inverse of a matrix, part of coursera Programming with R