Corrected removeDup from both LinkedLIst and VectorList