Eliminate memory management in Matrix with std::vector.