Week 2 hw, caching the inverse of a matrix