version of makeCacheMatrix by coursera student MC