mathlib vector2 and triangle2

Added vec2_distance whiche calculates the distance between 2 vectors.

Implemented some functions in triangle2.