basic apis
implemented api methods for deque
deque class finished