implemented testEnsureValidOutcomeMatrix() in MatrixUtils along with unit test