implemented lineclipping with Cohen-Sutherland algorithm