Has woking Bresenham algorithm.

The algorithm was copied from Mitio's solution.