Added support for drawing lines using bresenham algorithm in all eight directions.
Used bit shifts in Bresenham algorithm instead of multiplying by two.