Remove the element at index position anIndex. The element that has just been removed is returned in anElement