Remove Duplicates from Sorted Array, note index update