added linesegment collision, Range typedef