midpoint subdivision line clipping algorithm in computer graphics