Added iterator functionality to LinkedList.