add Move constructor, Move assignment operator

* add Move constructor, Move assignment operator to avoid infinit loop
by sort.
* use "auto" keyword.