fix line drawing algorhytm.
add C implementation of the Bresenham algo.