add checkInMat into cacheMatrix