Return the element at index position anIndex. Raise an exception if anIndex is outside the bounds of the array.