add cos() of two vectors in Math2D and test
Add helper function in GenericSegment2D

  - outNormal()
  - getter and setter of both head and rear coordinates