bresenham algorithm fixed
bresenham function fixed