added delete all instances of x

corrected delete at position and added delete all instances of x