Added Endpoint, Pair, Interval and IntervalManager to core-library to
implement overlap of lines. Added Unittest for IntervalManager