Refactored ArrayList.deleteSpan
Refactored ArrayList.deleteSegment