tested for deleting and adding 1000 elements