mathlib vector2 and triangle2

Added an argument for vector of reference when dealing with rotations.
So all 3 vector rotation functions have now an extra parameter for
origin vector.

Created the structure for triangle2.