For simplicity of the program , one extra row and one extra column are allocated in m [ ] [ ] . 0 th row and 0 th column of m [ ] [ ] are not used
int m [ ] [ ] = new int [ n ] [ n ] ; int i , j , k , L , q ;