Updated the deque constructor