Basic linked list implementation.