program to delete an element in a array