-list is the default parameter for the TS Deque
added parameters to define the side where put and get operations should operate
merge