reorganize Edge class as a base class for 1D elements and create its derived class TemplateLine
Edge class became an abstract class. Instead Line class should be used.