implemented bresenham's circle algorithm