implemented makeCacheMatrix and cacheResolve