Added libraries for basic vector calculations, in particular projection of point to line segment.