Moved implementation of Matrix.cpp to Matrix.hpp due to template madness.