Made MatrixBuilder enumerable for ease of implementation and testing.