Remove Duplicates from sorted array