Toy experiment with deque used while doing algorithms programming assignment 2