Remove Duplicates from Sorted List

Remember to free the memory!