Update queue.c

merging changes