Added an algorithm to compute a line.