Wrote the CacheMatrix function and tested it