optimize RemoveAllNodesHaveDupsFromSortedLinkedList implementation