Cached Matrix

programming assignment 2