Added segment intersection.
Added segment intersection.