Linked List in c++ for university purpose.