Programming Assignment 2 -- Caching the inverse of a matrix