HW assignment on Linked lists, iterators, memory leaks