Added solutions for removing duplicates in a linked list