creating data structure for front tracking: linked list type structure