Stack problem solved in C++11

Here's a clean solution of Stack that takes advantage of the new move semantics in C++11.