Added Bresenham algorithm