Modifing RandomizedQueue Class