added class Line, added approximation method to calculate a vector