Wrote 2 functions that does caching of a matrix inverse function