Added iterator support to SingleList and DoubleList.