Update

Problems with ingeritage a solved. Segment is now derived from class Line in order to avoid some problems with constructors and redundant variables. There's one "crutch", though. It deals with r-value reference if I understood correctly