Remove duplicates from sorted array - In place