Functional basis for linked list queue