refactored ConstantMat so that it doesn't necessitate a Builder