checking in cacheMatrix