Line segment intersection tests added