Matrix class uses move assignement and constructor if C++11. Great speed up.