remove duplicates from LL, intersection & union of LL