implemented deDupe function which eliminates duplicates from a linked list