deque: rename arr to deque, add missing methods