Fixed buggy MyArrayListIterator and refactored MyArrayList.