Brezenkhem line and circle algorithms