refs #4 add new class for line segments
Refactor Distance calculator, now it inherites from model, that contains double point and line segment, that is based on 2 double points.