SortLinkedList updated: unused variable removed.