Bresenham Line Drawing Algorithm Derivation