Implemented Bresenham's Line algorithm