checks if a row is increasing