Implementation of a Linked List class