Homework1 done by 2 times Brezenham