Added a method to SimpleLinkedList for removing duplicate elements.