Added a generic fn to print all elements in a linkedlist.
Check with Kdevelop