Add algorithm for deque and RandomizedQueue class template