Remove duplicates from a sorted array

* Removes duplicates from an array
* Returns the remainin number of elements