Replace deque with list.

Now queue in stream/generator is based on std::list. List works faster there.