Adding changes to iterators for single and double list.