Checking if is diagonally dominant