first attempt at deleting duplicates in linked list, not working for all scenarios yet