fix the bug in the argument of 'linearProg_2D_PS' and construct the conditions for pruning
construct two functions that would remove some redundant lines
construct the function for finding the intersection between distinct two lines
construct the function that could determine the slope of the line
make this program more simple and clear