fixes to Randomized queue and deque