line and circle generating algorithm in computer graphics