Set priorities in materializeWorkQueue
Update addToQueue and associated operations to use backing linked list.