Implements linked list.