Modified contains(Point[] polygon, Point p).
Adds contains(Point[] polygon, Line s).
Solved AOJ No. 0256-0271.