bug fix in ts_deque and ts_stack. get_left may return NULL altough there exists a proper candidate element