Dda Algorithm In C++