refactor DenseVecMatrix and modify saveToFileSystem API