Implement iterator delete and insert functions.