fix lots of white spaces, remove matrix , new bresenham algorithm