reordered MatrixBuilder constructor