added MatrixUtils.fromMatrix() method with unit test