remove duplicates from sorted lists
remove duplicates from sorted list 2