changed IMatrix to IDocVector