Queue problem solved in C++11

Adaptation of #60 from LIFO to FIFO, again using C++11 move semantics.