partition list, remove duplicate from sorted linked list