Add more test cases for line.c. They didn't all pass, so I implemented Bresenham's line algorithm under http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm#Simplification.