replaced cacheMatrix.R with my code