Tasks queue (circular linked list) implementation