add MatrixNN; and Unit Test of Gradient Check