construct the structure of function 'remove' and the structure of the procedure of 'pruningLeft'
fix some bugs in function 'findIntersections' and finish the function 'pruningLeft'
fix some bugs in function 'pruningLeft'