Completed Dequeue and Queue implementations