Finished the sweeping part... with some bugs
Solved the problems related with sweep. Detected new issues related to case 3 in the selection of the initial and ending vectors.