Added pseudocode for simplified linesweep.