Remove Duplicates from Sorted List in Java