remove duplicates from sorted list, using java