Deifned new functions projectVector, rasteriseVector. Defined the class segmentKeeper.