linkedlist file with basic functionailities, removeDuplicates : A friend function