Linked list classifier