Implemented line and circle algorithm