Implemented exercise 2.1 - Removing duplicates from a linked list without using a buffer.