queues: code cleanup in array implemented queue
queues: clean up in priority queue
queue: code cleanup in queue