Added segment intersection, triangle with point and segment intersections, segment and rectangle intersection