Checking of Horizontal lines