fix iterator bugs
add iterator test case to deque
iterator base implementation