first version of the cacheMatrix.R