Implementation for the Bresenham algorithm from computer graphics course