first version of cacheMatrix assignment