Changes for Coursera programming task API specification.
Deque iterator: from front to end.