Add general Bresenham line generation algorithm