remove single non-repeating elemnent in array problem; in progress