Made link list definition generic and added a LinkedListNode type.