Objective-C Bresenham Algorithm simple realization