rust implementation of bresenham's algo for fun