Result matrix
let result = new Array ( 2000 ) ; for ( let i = 0 ; i < 2000 ; i ++ ) { T [ i ] = new Array ( 2000 ) ; result [ i ] = new Array ( 2000 ) ; for ( let j = 0 ; j < 2000 ; j ++ ) { T [ i ] [ j ] = 0 ; result [ i ] [ j ] = 0 ; } }