Renamed to test.
Basic line algorithm.