lengthVector and unionPolygons functions added

unionPolygons is still in progress, we need to find how to merge two intersecting polygons. Except this case, the function does work.
unionPolygon branch merged

Conflicts:
	polygon.c
	polygon.h