Cohen-Sutherland linear cutting algorithm