Midpoint Ellipse Algorithm In C