public bool Set(int index, Path2DElement element)
 {
     if(index >= 0 && index <= this.Size)
     {
         elements[index] = element;
         return true;
     }
     else
         return false;
 }
 public Path2D(Path2DElement[] elements)
 {
     this.elements = elements;
 }