Xiaoyu Dong's answer to assignment 2

This is my answer to assignment 2.
Here I provide the functions that are used to create a special object that stores a matrix and caches its inverse.