Caching the inverse of a matrix. Programming Assignment2 - Coursera R Programming