Corrections to the stitch function.
Updated stitch function to use del list[index] when checking for already-complete loops in surface intersections.