Added exercie 3.23, deque operations