queue implementation on linked-lists