updated the cacheMatrix and cacheSolve functions