Paint Line Algorithms