add struct polygon and add function (is_line_crossing_rectangle)