Checking in makeCacheMatrix function