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
var m = Array ( n ) . fill ( 0 ) . map ( x => Array ( n ) . fill ( 0 ) ) ; var i , j , k , L , q ;