Changed minmatrix.c