hardware implementation of bresenham algorithm 2741603