creating the deque adt interface
implementing the deque interface with a python list