remove dupliate from sortted array