Added functionality for deque random insertion and unit tests