updated MN_matrix.c