Fixing compilation error. Deque does not extends List