queues: code cleanup in array implemented queue