add dp 163 hard (intersecting lines)