Create Remove Duplicates from sorted array