remove duplidates from sorted array oct 30