Code

Now, moving a value to the head of the queue is O(1). Before it was